import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';
import Router from './../../Router.js';
import New1 from './New1.js';
import './index.scss';

import { DatePicker } from 'antd';

class New extends Component {

	componentWillMount() {
		console.log(this)
	}
	componentDidMount() {}
	componentWillReceiveProps(newProps) {}
	shouldComponentUpdate(newProps, newState) {
		return true;
	}
	componentWillUpdate(nextProps, nextState) {}
	componentDidUpdate(prevProps, prevState) {}
	componentWillUnmount() {}

	render() {
		return (
			<div className='New'>
				New
				<br />
				<DatePicker />
				<Switch>
					<Route path={ Router.new1.path } component={ New1 }/>
				</Switch>
			</div>
		);
	}
}

export default New;